package com.twenty.seven.apollo.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 001
 * @Date 2020/2/4 14:52
 * @TODO
 **/
@RestController
public class TestController {

    @Value("${value}")
    private String value;

    @Value("${hello}")
    private String hello;

    @GetMapping(value = "/getConfig/{name}")
    public String getConfig(@PathVariable(value = "name") String name){
        return hello+","+name+","+value;
    }
}
